<?php

namespace App;

use Illuminate\Database\Eloquent\Model;

class Coach extends Model
{
    protected $table = 'Coaches';

    protected $dates = [
        'birthdate'
    ];

    public function courses()
    {
        return $this->hasMany(Course::class, 'coach_id');
    }

    public function club()
    {
        return $this->belongsTo(Club::class);
    }

}
